import Vue from 'vue'
import App from './App'

import plugin from './pages/plugin/home.vue'
Vue.component('plugin',plugin)

import member from './pages/member/home.vue'
Vue.component('member',member)

import manage from './pages/manage/home.vue'
Vue.component('manage',manage)

import about from './pages/about/home.vue'
Vue.component('about',about)

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

Vue.config.productionTip = false
Vue.prototype.serverPath = 'https://bb.naruto12fans.top/api/'
Vue.prototype.imgPath = 'https://bb.naruto12fans.top/Upload/'
//Vue.prototype.serverPath = 'http://121.196.184.101:9999/'
//Vue.prototype.imgPath = 'http://121.196.184.101:8888/Upload/'
//Vue.prototype.serverPath = 'http://192.168.0.107:9999/'
//Vue.prototype.serverPath = 'http://192.168.3.60:9999/'
//Vue.prototype.serverPath = 'http://47.111.113.232:9999/'
//Vue.prototype.imgPath = 'http://192.168.0.107:8888/Upload/'
//Vue.prototype.imgPath = 'http://192.168.3.60:8888/Upload/'

Vue.prototype.gProjectId = ''

Vue.prototype.isBlank = function(str) {
    return str == null || str == "null" || str == "" || str == "undefined" || str == undefined;
}
Vue.prototype.isNotBlank = function(str) {
    if (str == null || str == "null" || str == "" || str == "undefined" || str == undefined) {
        return false;
    } else {
        return true;
    }
}
Vue.prototype.dateTime = function(time) {
    let date = new Date(parseInt(time));
    let y = date.getFullYear();
    let MM = date.getMonth() + 1;
    MM = MM < 10 ? ('0' + MM) : MM;
    let d = date.getDate();
    d = d < 10 ? ('0' + d) : d;
    let h = date.getHours();
    h = h < 10 ? ('0' + h) : h;
    let m = date.getMinutes();
    m = m < 10 ? ('0' + m) : m;
    let s = date.getSeconds();
    s = s < 10 ? ('0' + s) : s;
    return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
}
/* Vue.prototype.$store = store */
Vue.prototype.statusBar=function(){
	let systemInfo = uni.getSystemInfoSync();
	const system = systemInfo.platform
	return systemInfo.statusBarHeight
}
Vue.prototype.screenWidth=function(){
	let systemInfo = uni.getSystemInfoSync();
	const system = systemInfo.platform
	return systemInfo.screenWidth
}
Vue.prototype.screenHeight=function(){
	let systemInfo = uni.getSystemInfoSync();
	const system = systemInfo.platform
	return systemInfo.screenHeight
}

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()

 



